package demo.qualifier;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * Created with IntelliJ IDEA.
 * User: supereme
 * Date: 8/26/13
 * Time: 1:43 AM
 * To change this template use File | Settings | File Templates.
 */
public class MovieRecommender {

    @Autowired
    @Qualifier("Action")
    private MovieCatalog actionCatalog;

    @Autowired
    @Qualifier("Comedy")
    private MovieCatalog comedyCatalog;

    @Override
    public String toString() {
        return "MovieRecommender{" +
                "actionCatalog=" + actionCatalog +"\n \t /t/n" +
                ", comedyCatalog=" + comedyCatalog +
                '}';
    }
}
